projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cdc59f
)
Pacify unused variable warning in xterm.c
author
Basil L. Contovounesios
<contovob@tcd.ie>
Sat, 11 Dec 2021 09:47:55 +0000
(11:47 +0200)
committer
Basil L. Contovounesios
<contovob@tcd.ie>
Sat, 11 Dec 2021 09:57:53 +0000
(11:57 +0200)
* src/xterm.c (handle_one_xevent) <GenericEvent> [HAVE_XINPUT2]: The
variable any_stop_p is used only when HAVE_XWIDGETS, so guard its
declaration accordingly to pacify GCC's -Wunused-variable warning.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index ae0daa79f31589fd5c11b182e77ee6a31b24283d..41aa2b268c1a2862f5d8799fd098eb14039cb0fd 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-9851,7
+9851,9
@@
handle_one_xevent (struct x_display_info *dpyinfo,
XIValuatorState *states;
double *values;
bool found_valuator = false;
+#ifdef HAVE_XWIDGETS
bool any_stop_p = false;
+#endif /* HAVE_XWIDGETS */
/* A fake XMotionEvent for x_note_mouse_movement. */
XMotionEvent ev;